package com.kunbo.cn.controller.system;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.kunbo.cn.service.system.SystemNameService;
import com.kunbo.cn.util.retu.CommonResult;

@RestController
@RequestMapping("/sysName/")
public class SystemNameController {
	@Autowired
	private SystemNameService snService;
	
	@RequestMapping("findById")
	public CommonResult findSysNameById(Integer id) {
		if(null==id) {
			return new  CommonResult(false,"参数为空",null);
		}
		return new  CommonResult(true,"获取成功",snService.findById(id));
		
	}

}
